#设置demo目录
set(DEMOPATH ${TK_EXAMPLE_DIR}/HelloWorld.Xml-Demo)
# 输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${DEMOPATH}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${DEMOPATH}/bin)

set(PRJ HelloWorld.Xml-Demo)
add_executable(${PRJ} "")
target_sources(${PRJ} PRIVATE ${DEMOPATH}/src/app_main.c ${DEMOPATH}/src/window_main.c)
set_target_properties(${PRJ} PROPERTIES FOLDER "examples")
set_target_properties(${PRJ} PROPERTIES  LINK_FLAGS ${OS_SUBSYSTEM_WINDOWS})

# 引用目录
target_include_directories(${PRJ} PRIVATE ${CPPPATH})

# 引用库
target_link_libraries(${PRJ} PRIVATE awtk)
